<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Cate extends Model
{
    //关联数据表
    public $table = 'cate';

    //主键
    public $primaryKey = "id";

    //允许操作的字段
    public $fillable = ['name','icon1','icon2','pid','url'];

    //不允许操作的字段
    public $guarded=[];
}
